package org.example.service;

import org.example.dao.IAirDao;
import org.example.entity.Air;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AirService implements IAirService {
    @Autowired
    private IAirDao airDao;

    @Override
    public int add(Air air) {
        return airDao.add(air);
    }

    @Override
    public int del(Long id) {
        return airDao.del(id);
    }

    @Override
    public int update(Air air) {
        return airDao.update(air);
    }

    @Override
    public Air get(Long id) {
        return airDao.get(id);
    }

    @Override
    public List<Air> getAll() {
        return airDao.getAll();
    }
}
